package com.dbgs.insurance.insuredperson.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.dbgs.insurance.insuredperson.R;
import com.hss.base.BaseActivty;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class UserInfoActivity extends BaseActivty {
    @BindView(R.id.btn_tite_back)
    Button btnTiteBack;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_tite_right)
    TextView tvTiteRight;
    @BindView(R.id.toolbar)
    Toolbar toolbar;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_info);
        ButterKnife.bind(this);
        initData();
        initView();
        initListener();
    }

    @Override
    public void initView() {
        super.initView();
        tvTiteRight.setVisibility(View.VISIBLE);
        tvTiteRight.setText(R.string.str_modify);
        tvTiteRight.setTextColor(getResources().getColor(R.color.color_red_txt));

        tvTitle.setText(R.string.str_user_info);
    }

    @OnClick({R.id.btn_tite_back, R.id.tv_tite_right})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_tite_back:
                exit();
                break;
            case R.id.tv_tite_right:
                startActy(ModifyUserInfoActivity.class);
                break;
        }
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
